package com.sgcc.statistics.service.impl;

import java.util.List;

import com.sgcc.system.api.domain.SysDept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sgcc.statistics.mapper.OBusiScaleMapper;
import com.sgcc.statistics.domain.OBusiScale;
import com.sgcc.statistics.service.IOBusiScaleService;

/**
 * 业务线上转化规模Service业务层处理
 * 
 * @author sgcc
 * @date 2021-03-28
 */
@Service
public class OBusiScaleServiceImpl implements IOBusiScaleService 
{
    @Autowired
    private OBusiScaleMapper oBusiScaleMapper;


    /**
     * 查询业务线上转化规模
     * 
     * @param id 业务线上转化规模ID
     * @return 业务线上转化规模
     */
    @Override
    public OBusiScale selectOBusiScaleById(String id)
    {
        return oBusiScaleMapper.selectOBusiScaleById(id);
    }

    /**
     * 查询业务线上转化规模列表
     * 
     * @param oBusiScale 业务线上转化规模
     * @return 业务线上转化规模
     */
    @Override
    public List<OBusiScale> selectOBusiScaleList(OBusiScale oBusiScale)
    {
        return oBusiScaleMapper.selectOBusiScaleList(oBusiScale);
    }

    /**
     * 新增业务线上转化规模
     * 
     * @param oBusiScale 业务线上转化规模
     * @return 结果
     */
    @Override
    public int insertOBusiScale(OBusiScale oBusiScale)
    {
        return oBusiScaleMapper.insertOBusiScale(oBusiScale);
    }

    /**
     * 修改业务线上转化规模
     * 
     * @param oBusiScale 业务线上转化规模
     * @return 结果
     */
    @Override
    public int updateOBusiScale(OBusiScale oBusiScale)
    {
        return oBusiScaleMapper.updateOBusiScale(oBusiScale);
    }

    /**
     * 批量删除业务线上转化规模
     * 
     * @param ids 需要删除的业务线上转化规模ID
     * @return 结果
     */
    @Override
    public int deleteOBusiScaleByIds(String[] ids)
    {
        return oBusiScaleMapper.deleteOBusiScaleByIds(ids);
    }

    /**
     * 删除业务线上转化规模信息
     * 
     * @param id 业务线上转化规模ID
     * @return 结果
     */
    @Override
    public int deleteOBusiScaleById(String id)
    {
        return oBusiScaleMapper.deleteOBusiScaleById(id);
    }

    @Override
    public List<SysDept> selectAuthByTypeAndGrades(String authNo, String orgNo, List<String> grades, String s) {
        return oBusiScaleMapper.selectAuthByTypeAndGrades( authNo,  orgNo, grades,  s);
    }
}
